<h1>Items List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Name</th>
      <th>Status</th>
      <th>Moderation</th>
      <th>Cost</th>
      <th>Admin comment</th>
      <th>Status start</th>
      <th>Status end</th>
      <th>Category</th>
      <th>User</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($items as $item): ?>
    <tr>
      <td><a href="<?php echo url_for('item/show?id='.$item->getId()) ?>"><?php echo $item->getId() ?></a></td>
      <td><?php echo $item->getName() ?></td>
      <td><?php echo $item->getStatus() ?></td>
      <td><?php echo $item->getModeration() ?></td>
      <td><?php echo $item->getCost() ?></td>
      <td><?php echo $item->getAdminComment() ?></td>
      <td><?php echo $item->getStatusStart() ?></td>
      <td><?php echo $item->getStatusEnd() ?></td>
      <td><?php echo $item->getCategoryId() ?></td>
      <td><?php echo $item->getUserId() ?></td>
      <td><?php echo $item->getCreatedAt() ?></td>
      <td><?php echo $item->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('item/new') ?>">New</a>
